import numpy as np
import matplotlib.pyplot as plt

#指数函数
def exp(x):
    return np.e**x

x = np.linspace(-5, 5, num = 100)
y = exp(x)

plt.plot(x,y)
#辅助线
plt.axvline(0,color ='cyan',linestyle = '--',alpha = 0.8)
plt.axhline(0,color='cyan',linestyle='--',alpha = 0.8)

plt.show()